package Day1;

public class FatherClass {
    protected static int count = 10;
    private String name;
    
    static {
        System.out.print("父类静态属性count初始化："+ count);
    }

    public FatherClass() {
        System.out.print("执行父类的无参构造方法");
    }

    public FatherClass(String name){
        this.name = name;
        System.out.print("执行父类构造方法FatherClass(String name):"+name);
    }
    public static void fatherFn(){
        System.out.print("this is father fn");
    }
}